package cn.lbd.api.designMode.strategy.factory;

import cn.lbd.api.designMode.strategy.entity.Price;

import java.math.BigDecimal;

public class PriceContext {
    public BigDecimal getPrice(BigDecimal price) throws Exception {
        Price price1 = PriceFactory.getFactory().getPrice(price);
        return price1.getPrice(price);
    }
}
